]> dgit.raspbian.org Git - gnome-shell.git/commit
status/network: Track device sections as device sections
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 4 Aug 2022 14:47:22 +0000 (16:47 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 7 Aug 2022 20:41:09 +0000 (22:41 +0200)
commit58d29f95a76a8bd96af0bdb2e4d744217df10319
tree2db7ff671348e179f20282fa2c6975d34aa82d78
parent586bb29b9c97e972ae48fce5f5ab0e281f0a35e2
status/network: Track device sections as device sections

The _devices property is another case of overloading the
"device" term.

Fun fact:

  this._devices[device._delegate.category].devices

uses three different meanings of "device" (section, NM.Device, item).

The devices array in sections won't be around for much longer,
but the property that tracks the sections is worth renaming.

While at it, use a map instead of a plain object, which has a
guaranteed order when iterating (which will come in handy later).

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2406>
js/ui/status/network.js